package com.cust.zy.newtask.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhuangyuan on 4/15/2017.
 * 邮箱：zhuangyuan.k@qq.com
 */
public class Word implements Parcelable {
    private String ID;
    private String name;
    private String translation;
    private String phonetic_alphabet;
    private String list;
    private String taskID;

    public Word() {}

    public Word(String ID,  String name, String translation,String phonetic_alphabet, String list,String taskID) {
        this.ID = ID;
        this.translation = translation;
        this.name = name;
        this.phonetic_alphabet = phonetic_alphabet;
        this.list = list;
        this.taskID = taskID;
    }

    protected Word(Parcel in) {
        ID = in.readString();
        name = in.readString();
        translation = in.readString();
        phonetic_alphabet = in.readString();
        list = in.readString();
        taskID = in.readString();
    }

    public static final Creator<Word> CREATOR = new Creator<Word>() {
        @Override
        public Word createFromParcel(Parcel in) {
            return new Word(in);
        }

        @Override
        public Word[] newArray(int size) {
            return new Word[size];
        }
    };

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getID() {
        return ID;
    }

    public void setTranslation(String translation) {
        this.translation = translation;
    }

    public String getTranslation() {
        return translation;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPhonetic_alphabet(String phonetic_alphabet) {
        this.phonetic_alphabet = phonetic_alphabet;
    }

    public String getPhonetic_alphabet() {
        return phonetic_alphabet;
    }

    public void setList(String list) {
        this.list = list;
    }

    public String getList() {
        return list;
    }

    public String getTaskID() {
        return taskID;
    }

    public void setTaskID(String taskID) {
        this.taskID = taskID;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(ID);
        dest.writeString(name);
        dest.writeString(translation);
        dest.writeString(phonetic_alphabet);
        dest.writeString(list);
        dest.writeString(taskID);
    }

}
